<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ReportsLaboratory.aspx.cs" Inherits="ReportsLaboratory" Title="Raportari paraclinice" %>

<%@ MasterType VirtualPath="~/MasterPage.master" %>
<%@ Register Namespace="NS_Controls" TagPrefix="cc1" %>
<%@ Register Namespace="CustomControlsNS" TagPrefix="cc2" %>
<asp:Content ID="ContentDefault" ContentPlaceHolderID="ContentPlaceHolderContent"
    runat="Server">
    <link href="../../Styles/themes/fancy/tabs.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/themes/fancy/fancy-blue/fancy-blue.css" rel="stylesheet"
        type="text/css" />
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <div style="padding-bottom: 20px">
                <asp:UpdateProgress ID="UpdateProgressReportsLaboratory" runat="server" DisplayAfter="100">
                    <ProgressTemplate>
                        <span id="spnProgress" class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                    </ProgressTemplate>
                </asp:UpdateProgress>
                <asp:Literal ID="pageOutput" runat="server" />
                <ajaxToolKit:TabContainer ID="tabContainer" runat="server" CssClass="fancy fancy-blue">
                    <ajaxToolKit:TabPanel ID="tabReportsLaboratory" runat="server" HeaderText="Rapoarte Laborator">
                        <ContentTemplate>
                            <div style="vertical-align: top">
                                <table style="width: 98%">
                                    <tr valign="top">
                                        <td align="center">
                                            <cc2:CustomButton ID="btnReport" runat="server" Text="Genereaza Raportul" OnServerClick="btnReport_Click" />
                                        </td>
                                        <td align="left" style="width: 40%">
                                            <asp:ListBox ID="ddlGrupRaport" runat="server" Height="128" AutoPostBack="true" OnSelectedIndexChanged="ddlGrupRaport_SelectedIndexChanged">
                                                <asp:ListItem Value="genericDocs" Text="Documente generale" />
                                                <asp:ListItem Value="casLPrivat" Text="Pentru CAS - format laboratoare private" />
                                                <asp:ListItem Value="casGeneric" Text="Pentru CAS - format general" />
                                                <asp:ListItem Value="casAmbulator" Text="Pentru CAS - formatul ambulatoriului de specialitate al spitalului" />
                                                <asp:ListItem Value="misc" Text="Generale" />
                                            </asp:ListBox>
                                        </td>
                                        <td align="left" style="width: 40%">
                                            <asp:ListBox ID="ddlRaportSelector" runat="server" Height="128" Style="width: 100%"
                                                AutoPostBack="true" OnSelectedIndexChanged="ddlRaportSelector_SelectedIndexChanged">
                                                <asp:ListItem Text="Centralizator pe sectii si pe medici" Value="genericDocs|Centralizer_Medics_Sections" />
                                                <asp:ListItem Text="Desfasurator investigatii paraclinice" Value="genericDocs|registerStudyPrepare.asp" />
                                                <asp:ListItem Text="Registru primiri" Value="genericDocs|regPrimiri_prep.asp?report=regPrimiri" />
                                                <asp:ListItem Text="Lista de investigatii" Value="genericDocs|registerStudyPrepare.asp?report=invList" />
                                                <asp:ListItem Text="Lista de investigatii pe grupe de varsta" Value="genericDocs|regPrimiri_prep.asp?report=invListVarste" />
                                                <asp:ListItem Value="genericDocs|regCereri" Text="Registru Cereri" />
                                                <asp:ListItem Text="Centralizator cu valoarea investigatiilor pe sectii/tip de investigatii"
                                                    Value="casLPrivat|listCASPrivateLabsPrepare.asp" />
                                                <asp:ListItem Text="Lista pacienti (Investigatii suprapuse)" Value="casLPrivat|nominalCASPrivateLabsDetailPrepare.asp" />
                                                <asp:ListItem Text="Centralizator cu valoarea investigatiilor pe sectii/tip de investigatii"
                                                    Value="casGeneric|centralizerCAS_VALPrepare.asp" />
                                                <asp:ListItem Text="Centralizator investigatii paraclinice" Value="casGeneric|centralizerCASPrepare.asp" />
                                                <asp:ListItem Text="Desfasurator investigatii paraclinice" Value="casGeneric|listCASPrepare.asp" />
                                                <asp:ListItem Text="Lista nominala" Value="casGeneric|nominalCASPrepare.asp" />
                                                <asp:ListItem Text="Centralizator lunar al investigatiilor paraclinice efectuate in ambulatoriul de specialitate"
                                                    Value="casAmbulator|listAMBPrepare.asp" />
                                                <asp:ListItem Text="Lista pacienti" Value="casAmbulator|nominalAMBPrepare.asp" />
                                                <asp:ListItem Text="Lista pacienti (Investigatii suprapuse)" Value="casAmbulator|nominalAMBDetailPrepare.asp" />
                                                <asp:ListItem Text="Sectii - Medici" Value="misc|generalFilePrepareSecMe.asp" />
                                                <asp:ListItem Text="Sectii - Medici - Analize" Value="misc|generalFilePrepareSecMeAn.asp" />
                                                <asp:ListItem Text="Sectii - Medici - Analize - Detaliat" Value="misc|generalFilePrepareSecMeAnDet.asp" />
                                                <asp:ListItem Text="Analize - Sectii - Medici" Value="misc|generalFilePrepareAnSecMe.asp" />
                                                <asp:ListItem Text="Analize - Sectii - Medici - Detalii" Value="misc|generalFilePrepareAnSecMeDet.asp" />
                                                <asp:ListItem Text="Clase - Sectii - Medici - Detalii" Value="misc|ClassSecMeDet.asp" />
                                            </asp:ListBox>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <br />
                                <asp:Literal ID="selectedReportOutput" runat="server" />
                            </div>
                            <asp:Panel ID="filtering" runat="server">
                                <table border="0" style="width: 98%;" cellspacing="2">
                                    <tr id="trTimeInterval" runat="server" class="tdn">
                                        <td style="width: 20%">
                                            <asp:Literal ID="startDate" runat="server" Text="Data de inceput:" />
                                        </td>
                                        <td style="width: 30%">
                                            <asp:TextBox ID="txtStartDate" runat="server" BorderStyle="Groove" Style="width: 99px" />
                                            <ajaxToolKit:FilteredTextBoxExtender ID="filtStartDate" runat="server" TargetControlID="txtStartDate"
                                                ValidChars="/-.0123456789" />
                                            <ajaxToolKit:CalendarExtender ID="extStartDate" BehaviorID="CalendarStart" runat="server"
                                                TargetControlID="txtStartDate" PopupButtonID="imgCalStart" Animated="true" />
                                            <asp:TextBox ID="txtStartTime" runat="server" BorderStyle="Groove" Style="width: 72px" />
                                            <ajaxToolKit:FilteredTextBoxExtender ID="filtStartTime" runat="server" TargetControlID="txtStartTime"
                                                ValidChars=": 0123456789" />
                                        </td>
                                        <td style="width: 20%">
                                            <asp:Literal ID="endDate" runat="server" Text="Data de sfarsit:" />
                                        </td>
                                        <td style="width: 30%">
                                            <asp:TextBox ID="txtEndDate" runat="server" BorderStyle="Groove" Style="width: 99px" />
                                            <ajaxToolKit:FilteredTextBoxExtender ID="filtEndDate" runat="server" TargetControlID="txtEndDate"
                                                ValidChars="/-.0123456789" />
                                            <ajaxToolKit:CalendarExtender ID="extEndDate" BehaviorID="CalendarEnd" runat="server"
                                                TargetControlID="txtEndDate" PopupButtonID="imgCalEnd" Animated="true" />
                                            <asp:TextBox ID="txtEndTime" runat="server" BorderStyle="Groove" Style="width: 72px" />
                                            <ajaxToolKit:FilteredTextBoxExtender ID="filtEndTime" runat="server" TargetControlID="txtEndTime"
                                                ValidChars=": 0123456789" />
                                        </td>
                                    </tr>
                                    <tr id="trAnalysis" runat="server" class="tdn">
                                        <td>
                                            Analiza
                                        </td>
                                        <td colspan="3">
                                            <asp:DropDownList ID="strAnalysis" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trSectionMedic" runat="server" class="tdn">
                                        <td>
                                            Sectia
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="strSection" runat="server" />
                                        </td>
                                        <td>
                                            Medicul
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="strMedic" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trPlati" runat="server" class="tdn">
                                        <td>
                                            Tipul platii
                                        </td>
                                        <td id="tdPlatiDropDown">
                                            <asp:DropDownList ID="strPayType" runat="server" />
                                        </td>
                                        <td>
                                            <label for="<% = bSpecifiedPayType.ClientID %>">
                                                <asp:Literal ID="labelSpecifiedPayType" runat="server">
													Selecteaza numai cererile cu tipul platii specificat?
                                                </asp:Literal>
                                            </label>
                                        </td>
                                        <td id="tdPlatiCheckBox" visible="false">
                                            <asp:CheckBoxList ID="filterTypePayment" runat="server" AutoPostBack="true" OnSelectedIndexChanged="filterTypes_SelectedIndexChanged"
                                                RepeatDirection="Horizontal" RepeatLayout="Flow" />
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="bSpecifiedPayType" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trSumming" runat="server" class="tdn">
                                        <td>
                                            <label for="<% = bShowSums.ClientID %>">
                                                Imprima sumele?
                                            </label>
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="bShowSums" runat="server" />
                                        </td>
                                        <td colspan="2">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr id="trSectionMedic2" runat="server" class="tdn">
                                        <td>
                                            Tipul Medicului
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="strMedicType" runat="server" />
                                        </td>
                                        <td>
                                            Sectia:
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="strSection2" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trDetails" runat="server" class="tdn">
                                        <td>
                                            <label for="<% = bDetails.ClientID %>">
                                                <asp:Literal ID="detailsLabel1" runat="server" Visible="true">Numai procesate?</asp:Literal>
                                                <asp:Literal ID="detailsLabel2" runat="server" Visible="false">Afiseaza toate informatiile despre pacient?</asp:Literal>
                                            </label>
                                        </td>
                                        <td>
                                            <!-- strProcessed / * -->
                                            <asp:CheckBox ID="bDetails" runat="server" />
                                        </td>
                                        <td>
                                            <label for="<% = bTehnice.ClientID %>">
                                                Probe tehnice?
                                            </label>
                                        </td>
                                        <td>
                                            <!-- test -->
                                            <asp:CheckBox ID="bTehnice" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trInvestigationResults" runat="server" class="tdn">
                                        <td>
                                            Investigatia:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtInvestigatie" runat="server" Style="width: 200px" />
                                        </td>
                                        <td>
                                            Rezultat:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtRezultat" runat="server" Style="width: 200px" />
                                        </td>
                                    </tr>
                                    <tr id="trResultValues" runat="server" class="tdn">
                                        <td>
                                            Descriere valori:
                                        </td>
                                        <td colspan="3">
                                            <asp:DropDownList ID="comparerOp1" runat="server">
                                                <asp:ListItem Value="Less" Text="<" />
                                                <asp:ListItem Value="Equals" Text="=" />
                                                <asp:ListItem Value="More" Text=">" />
                                                <asp:ListItem Value="Like" Text="%" />
                                            </asp:DropDownList>
                                            <asp:TextBox ID="comparedValue1" runat="server" />
                                            <asp:DropDownList ID="compareType" runat="server">
                                                <asp:ListItem Value="OR" Text="sau" />
                                                <asp:ListItem Value="AND" Text="si" />
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="comparerOp2" runat="server">
                                                <asp:ListItem Value="Less" Text="<" />
                                                <asp:ListItem Value="Equals" Text="=" />
                                                <asp:ListItem Value="More" Text=">" />
                                                <asp:ListItem Value="Like" Text="%" />
                                            </asp:DropDownList>
                                            <asp:TextBox ID="comparedValue2" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trExtra1" runat="server" class="tdn">
                                        <td>
                                            <label for="<% = bNumeCodCAS.ClientID %>">
                                                Nume + cod CAS?
                                            </label>
                                        </td>
                                        <td>
                                            <!-- strCAS -->
                                            <asp:CheckBox ID="bNumeCodCAS" runat="server" />
                                        </td>
                                        <td>
                                            Tipul platii
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="strPayType2" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trExtra2" runat="server" class="tdn">
                                        <td>
                                            <label for="<% = bShowRepeatCounts.ClientID %>">
                                                Include numarul de repetari?
                                            </label>
                                        </td>
                                        <td>
                                            <!-- strCount -->
                                            <asp:CheckBox ID="bShowRepeatCounts" runat="server" />
                                        </td>
                                        <td>
                                            <label for="<% = bOnlyPayType.ClientID %>">
                                                Selecteaza numai cererile cu tipul platii specificat?
                                            </label>
                                        </td>
                                        <td>
                                            <!-- strForcePTID -->
                                            <asp:CheckBox ID="bOnlyPayType" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trExclusions" runat="server" class="tdn">
                                        <td>
                                            <label for="<% = bUnpaidToo.ClientID %>">
                                                Neplatite de CAS?
                                            </label>
                                        </td>
                                        <td>
                                            <!-- strCASNotPayable -->
                                            <asp:CheckBox ID="bUnpaidToo" runat="server" />
                                        </td>
                                        <td>
                                            <label for="<% = bInactiveToo.ClientID %>">
                                                Inactive?
                                            </label>
                                        </td>
                                        <td>
                                            <!-- strInactive -->
                                            <asp:CheckBox ID="bInactiveToo" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trOutputFormat1" runat="server" valign="middle" class="tdn">
                                        <td rowspan="2">
                                            Format document
                                        </td>
                                        <td rowspan="2">
                                            <asp:RadioButtonList ID="strFormat" runat="server">
                                                <asp:ListItem Value="HTML" Selected="true" />
                                                <asp:ListItem Value="Word" />
                                                <asp:ListItem Value="Excel" />
                                            </asp:RadioButtonList>
                                        </td>
                                        <td>
                                            <label for="<% = bInternalName.ClientID %>">
                                                <asp:Literal ID="labelInternalNames" runat="server">
													Foloseste numele intern?
                                                </asp:Literal>
                                                &nbsp;
                                            </label>
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="bInternalName" runat="server" />
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr id="trOutputFormat2" runat="server" class="tdn">
                                        <td>
                                            <label for="<% = bInternalCode.ClientID %>">
                                                <asp:Literal ID="labelInternalCodes" runat="server">
													Foloseste coduri interne?
                                                </asp:Literal>
                                                &nbsp;
                                            </label>
                                        </td>
                                        <td>
                                            <!-- strInternalCoding -->
                                            <asp:CheckBox ID="bInternalCode" runat="server" />
                                        </td>
                                    </tr>
                                    <tr id="trGroupBySection" runat="server" valign="top" class="tdn">
                                        <td>
                                            <asp:Literal ID="labelGroupBySection" runat="server">
												Recomandate de:
                                            </asp:Literal>
                                            <!--<br />///<br />
											Pe sectii:-->
                                        </td>
                                        <td colspan="3">
                                            <asp:Button ID="checkAllSections" runat="server" CommandArgument="allSections" OnClick="checkButton_Click" />
                                            <asp:Button ID="customSections" runat="server" Enabled="false" />
                                            <asp:Button ID="checkNoSections" runat="server" CommandArgument="noSections" OnClick="checkButton_Click" />
                                            <br />
                                            <!-- section -->
                                            <asp:CheckBoxList ID="filterSection" runat="server" AutoPostBack="true" OnSelectedIndexChanged="filterSection_SelectedIndexChanged"
                                                RepeatDirection="Horizontal" RepeatLayout="Flow" />
                                        </td>
                                    </tr>
                                    <tr id="trGroupByTypes" runat="server" valign="top" class="tdn">
                                        <td>
                                            Pe tipuri:
                                        </td>
                                        <td colspan="3">
                                            <asp:Button ID="checkAllTypes" runat="server" CommandArgument="allTypes" OnClick="checkButton_Click" />
                                            <asp:Button ID="customTypes" runat="server" Enabled="false" />
                                            <asp:Button ID="checkNoTypes" runat="server" CommandArgument="noTypes" OnClick="checkButton_Click" />
                                            <br />
                                            <!-- class -->
                                            <asp:RadioButtonList ID="filterType" runat="server" Visible="true" RepeatDirection="Horizontal"
                                                RepeatLayout="Flow" />
                                            <asp:CheckBoxList ID="filterTypes" runat="server" AutoPostBack="true" OnSelectedIndexChanged="filterTypes_SelectedIndexChanged"
                                                RepeatDirection="Horizontal" RepeatLayout="Flow" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Literal ID="filterOutput" runat="server" />
                        </ContentTemplate>
                    </ajaxToolKit:TabPanel>
                    <ajaxToolKit:TabPanel ID="tabPrintBuletins" runat="server" HeaderText="Imprimare Buletine">
                        <ContentTemplate>
                            <div>
                                <table width="98%">
                                    <tr>
                                        <td>
                                            <div class="menu_th">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lblImpBuletins" runat="server" CssClass="menu_th1">Pregatire imprimare buletine analize</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:UpdateProgress ID="UpdateProgressLabRequest" runat="server" DisplayAfter="100">
                                                                <ProgressTemplate>
                                                                    <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                                                </ProgressTemplate>
                                                            </asp:UpdateProgress>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <table width="100%">
                                                            <cc2:CustomButton ID="btnGenerateReportsIB" runat="server" Text="Genereaza Raportul"
                                                                OnServerClick="btnGenerateReportIB_Click" />
                                                            <tr>
                                                                <td style="width: 15%" class="tdn">
                                                                    Lista coduri:
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <span class="tdSmall">
                                                                        <asp:TextBox ID="txtListaCoduri" runat="server" Width="350px" />
                                                                    </span>
                                                                </td>
                                                                <td style="width: 15%" class="tdn" colspan="2">
                                                                    <i>(ex: 123,124,130;133-150)</i>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 15%" class="tdn">
                                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:DatabaseStrings, StartDate%>" />
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <span class="tdSmall">
                                                                        <asp:TextBox ID="txtDataStart" runat="server" MaxLength="10" />
                                                                        <asp:ImageButton ID="imgDataStart" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                            BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                                        <asp:TextBox ID="txtTimeStartIB" runat="server" BorderStyle="Groove" Style="width: 72px" />
                                                                        <ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderStart" runat="server"
                                                                            TargetControlID="txtDataStart" ValidChars=".-/0123456789" />
                                                                        <ajaxToolKit:CalendarExtender ID="calDataStart" runat="server" TargetControlID="txtDataStart"
                                                                            PopupButtonID="imgDataStart" Format="yyyy-MM-dd" />
                                                                        <ajaxToolKit:CalendarExtender ID="calDataStart2" runat="server" TargetControlID="txtDataStart" />
                                                                    </span>
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:DatabaseStrings, EndDate%>" />
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <span class="tdSmall">
                                                                        <asp:TextBox ID="txtDataEnd" runat="server" MaxLength="10" />
                                                                        <asp:ImageButton ID="imgDataEnd" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                            BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                                        <asp:TextBox ID="txtTimeEndIB" runat="server" BorderStyle="Groove" Style="width: 72px" />
                                                                        <ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderEnd" runat="server"
                                                                            TargetControlID="txtDataEnd" ValidChars=".-/0123456789" />
                                                                        <ajaxToolKit:CalendarExtender ID="calDataEnd" runat="server" TargetControlID="txtDataEnd"
                                                                            PopupButtonID="imgDataEnd" Format="yyyy-MM-dd" />
                                                                        <ajaxToolKit:CalendarExtender ID="calDataEnd2" runat="server" TargetControlID="txtDataEnd" />
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 15%" class="tdn">
                                                                    Sectia:
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <span class="tdSmall">
                                                                        <asp:DropDownList ID="drpSectionIB" runat="server" Width="350px" />
                                                                    </span>
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    Medic:
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <span class="tdSmall">
                                                                        <asp:DropDownList ID="drpMedicIB" runat="server" Width="350px" />
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 15%" class="tdn">
                                                                    Tipuri investigatii:
                                                                </td>
                                                                <td style="width: 15%" class="tdn" colspan="3">
                                                                    <span class="tdSmall">
                                                                        <asp:DropDownList ID="drpTypesInv" runat="server" Width="350px" />
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 15%" class="tdn">
                                                                    Afiseaza toate informatiile despre pacient? :
                                                                </td>
                                                                <td style="width: 15%" class="tdn" colspan="3">
                                                                    <span class="tdSmall">
                                                                        <asp:CheckBox ID="chkPtientInfIB" runat="server" AutoPostBack="true" />
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <div class="divEnd">
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </ContentTemplate>
                    </ajaxToolKit:TabPanel>
                    <ajaxToolKit:TabPanel ID="tabResearch" runat="server" HeaderText="Cercetare">
                        <ContentTemplate>
                            <div>
                                <table width="98%">
                                    <tr>
                                        <td>
                                            <div class="menu_th">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lblStudySR" runat="server" CssClass="menu_th1">Pregatire imprimare registru cercetare</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:UpdateProgress ID="upRegisterStudy" runat="server" DisplayAfter="100">
                                                                <ProgressTemplate>
                                                                    <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                                                </ProgressTemplate>
                                                            </asp:UpdateProgress>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <table width="100%">
                                                            <cc2:CustomButton ID="btnStudyRegister" runat="server" Text="Genereaza Raportul"
                                                                OnServerClick="btnGenerateReportSR_Click" />
                                                            <tr>
                                                                <td style="width: 15%" class="tdn">
                                                                    <asp:Literal ID="litDSSR" runat="server" Text="<%$ Resources:DatabaseStrings, StartDate%>" />
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <span class="tdSmall">
                                                                        <asp:TextBox ID="txtStartDataSR" runat="server" MaxLength="10" />
                                                                        <asp:ImageButton ID="imgDataStartSR" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                            BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                                        <asp:TextBox ID="txtTimeDSSR" runat="server" BorderStyle="Groove" Style="width: 72px" />
                                                                        <ajaxToolKit:FilteredTextBoxExtender ID="ftbSDSR" runat="server" TargetControlID="txtStartDataSR"
                                                                            ValidChars=".-/0123456789" />
                                                                        <ajaxToolKit:CalendarExtender ID="calDataStartSR" runat="server" TargetControlID="txtStartDataSR"
                                                                            PopupButtonID="imgDataStartSR" Format="yyyy-MM-dd" />
                                                                        <ajaxToolKit:CalendarExtender ID="cal2DataStartSR" runat="server" TargetControlID="txtStartDataSR" />
                                                                    </span>
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <asp:Literal ID="litSRDE" runat="server" Text="<%$ Resources:DatabaseStrings, EndDate%>" />
                                                                </td>
                                                                <td style="width: 15%" class="tdn">
                                                                    <span class="tdSmall">
                                                                        <asp:TextBox ID="txtEndDataSR" runat="server" MaxLength="10" />
                                                                        <asp:ImageButton ID="imgEndStartSR" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                            BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                                        <asp:TextBox ID="txtTimeEDSR" runat="server" BorderStyle="Groove" Style="width: 72px" />
                                                                        <ajaxToolKit:FilteredTextBoxExtender ID="ftbEDSR" runat="server" TargetControlID="txtEndDataSR"
                                                                            ValidChars=".-/0123456789" />
                                                                        <ajaxToolKit:CalendarExtender ID="calEndDataSR" runat="server" TargetControlID="txtEndDataSR"
                                                                            PopupButtonID="imgEndStartSR" Format="yyyy-MM-dd" />
                                                                        <ajaxToolKit:CalendarExtender ID="cal2EndDataSR" runat="server" TargetControlID="txtEndDataSR" />
                                                                    </span>
                                                                </td>
                                                            </tr>
                                                            <tr class="tdn">
                                                                <td>
                                                                    <label for="<% = bDetailsSR.ClientID %>">
                                                                        <asp:Literal ID="litSRPI" runat="server" Visible="true">Afiseaza toate informatiile despre pacient?</asp:Literal>
                                                                    </label>
                                                                </td>
                                                                <td>
                                                                    <asp:CheckBox ID="bDetailsSR" runat="server" />
                                                                </td>
                                                                <td>
                                                                    <label for="<% = bTehniceSR.ClientID %>">
                                                                        Include si probele tehnice?
                                                                    </label>
                                                                </td>
                                                                <td>
                                                                    <!-- test -->
                                                                    <asp:CheckBox ID="bTehniceSR" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr class="tdn">
                                                                <td>
                                                                    Investigatia:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtInvestigationSR" runat="server" Style="width: 200px" />
                                                                </td>
                                                                <td>
                                                                    Rezultat:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtResultSR" runat="server" Style="width: 200px" />
                                                                </td>
                                                            </tr>
                                                            <tr class="tdn">
                                                                <td>
                                                                    Descriere valori:
                                                                </td>
                                                                <td colspan="3">
                                                                    <asp:DropDownList ID="drpSR" runat="server">
                                                                        <asp:ListItem Value="Less" Text="<" />
                                                                        <asp:ListItem Value="Equals" Text="=" />
                                                                        <asp:ListItem Value="More" Text=">" />
                                                                        <asp:ListItem Value="Like" Text="%" />
                                                                    </asp:DropDownList>
                                                                    <asp:TextBox ID="txtSR" runat="server" />
                                                                    <asp:DropDownList ID="drpORNOTSR" runat="server">
                                                                        <asp:ListItem Value="OR" Text="sau" />
                                                                        <asp:ListItem Value="AND" Text="si" />
                                                                    </asp:DropDownList>
                                                                    <asp:DropDownList ID="drpLESSSR" runat="server">
                                                                        <asp:ListItem Value="Less" Text="<" />
                                                                        <asp:ListItem Value="Equals" Text="=" />
                                                                        <asp:ListItem Value="More" Text=">" />
                                                                        <asp:ListItem Value="Like" Text="%" />
                                                                    </asp:DropDownList>
                                                                    <asp:TextBox ID="txtLessSR" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr class="tdn">
                                                                <td>
                                                                    Format document
                                                                </td>
                                                                <td colspan="3">
                                                                    <asp:RadioButtonList ID="rdFormatSR" runat="server">
                                                                        <asp:ListItem Value="HTML" />
                                                                        <asp:ListItem Value="Word" />
                                                                        <asp:ListItem Value="Excel" />
                                                                    </asp:RadioButtonList>
                                                                </td>
                                                            </tr>
                                                            <tr class="tdn">
                                                                <td>
                                                                    Pe tipuri:
                                                                </td>
                                                                <td colspan="3">
                                                                    <span class="tdSmall">
                                                                        <asp:DropDownList ID="drpInvestigSR" runat="server" Width="350px" />
                                                                    </span>
                                                                </td>
                                                    
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <div class="divEnd">
                                </div>
                                </td> </tr> </table>
                            </div>
                        </ContentTemplate>
                    </ajaxToolKit:TabPanel>
                </ajaxToolKit:TabContainer>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script language="javascript" type="text/javascript">
        
    </script>
</asp:Content>
